package main

import (
	"flag"
	"log"
	config2 "src/config"
	"src/start"
)

func main() {

	flag.StringVar(&config2.Env.Active, "active", "", "运行环境") // 定义默认环境
	flag.Parse()
	log.Println("程序启动") // 解析标志
	log.Println("active:" + config2.Env.Active)

	start.Start()
	log.Println("格式化类型" + config2.V().GetString("client.msg-fmt"))
	//update_on_line_time_fang_user := config.V().GetBool("heartbeat.is-update-on-line-time-fang-user")
	//sql := config.V().GetString("heartbeat.update-on-line-time-fang-user-sql")
	//log.Println(update_on_line_time_fang_user, sql)
	//log.Println(config.V().GetString("auth.ipBlacklist.test"))

	select {}
}
